#ifndef ACCOUNT_SYSTEM_SAVINGSACCOUNT_H
#define ACCOUNT_SYSTEM_SAVINGSACCOUNT_H

#include "Account.h"
using namespace std;
class SavingsAccount : public Account
{
public:
    // 储蓄账户构造函数，初始化账户ID、所有者姓名和初始余额
    SavingsAccount(const string &id, const string &owner, double initialBalance = 0.0);

    // 纯虚函数方法的实现
    string getAccountType() const override;  // 获取账户类型
    bool canDeposit() const override;             // 是否可以存款
    bool canWithdraw() const override;            // 是否可以取款
};

#endif // ACCOUNT_SYSTEM_SAVINGSACCOUNT_H